'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
      const {ctx,app} = this;
      console.log(app.redis.set)
      await app.redis.set('foo', 'bar');
      // get
      ctx.body = await app.redis.get('catch_weather');
  }
}

module.exports = HomeController;
